<?php

class Core_Action_Admin_Appearance_Template_Index extends Action_Admin
{
	public function execute($request, $initial = false, $script = null)
	{
		if ($initial)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/appearance',
					'label' => 'Appearance'
				),
				array(
					'url' => 'admin/appearance/template',
					'label' => 'Template'
				),
			));
		}

		$table = Model::getTable('core/language');

		$items = $table -> fetchAll();

		$request -> response = View::render($script = 'core/html/admin/setting/i18n/country/index', $data = array('items' => $items));
	}

}
